<?php
	session_start();
	require_once("header.php");
	
?>
    <main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4">
      <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
        <h1 class="h2">用户管理</h1>
        <div class="btn-toolbar mb-2 mb-md-0">
          <div class="btn-group mr-2">
            <button type="button" class="btn btn-sm btn-outline-secondary">Share</button>
            <button type="button" class="btn btn-sm btn-outline-secondary">Export</button>
          </div>
          <button type="button" class="btn btn-sm btn-outline-secondary dropdown-toggle">
            <span data-feather="calendar"></span>
            This week
          </button>
        </div>
      </div>

      
      <h2>个人信息</h2>
	  
	  
	  <table class="table">
		 <form action="" method=""> 
		  <tbody>
		  <tr>
			<th> 用户名 </th>
			<td>
			<input name="uname" 
			type="text" value=
			"<?php echo $_SESSION['user']['uname'];?>"/>	</td>
		  </tr>
		  </form>
		  <?php
		  /*
			if(count($data)==0)
				echo '<tr><td colspan="6">暂无用户</td></tr>';
			else{
				foreach($data as $index=>$one){
					echo '<tr scope="row">';
					echo '<td>'.($index+1).'</td>';
					echo '<td>'.$one['uname'].'</td>';
					echo '<td>'.$one['birthdate'].'</td>';
					echo '<td>'.$one['gender'].'</td>';
					echo '<td>'.$one['email'].'</td>';
					echo '<td><img src="'.$one['pic'].'" width=20/></td>';
					echo '<td>';
					echo '<a href="cpass.php?uid='
						.$one['uid']
						.'&uname='.$one['uname'].'">修改密码</a>';
					if($one['state']==1)
						echo '&nbsp;&nbsp;<a href="frozen.php?uid='
						.$one['uid']
						.'&state=0">冻结</a>';
					else
						echo '&nbsp;&nbsp;<a href="frozen.php?uid='
						.$one['uid']
						.'&state=1">解冻</a>';
					echo '</td>';
					echo '</tr>';
				}
				
			}*/
			?>
			
		  </tbody>
	 </table> 
      -->
    </main>
  <?php 
  require_once("footer.php");
  ?>

